<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends CommonAction {
    public function index(){
        import("ORG.Util.Session");
        if(!Session::is_set(C('USER_AUTH_KEY'))){
            $this->redirect("Login/index");
        }else{
            $this->display();
        }
    }

    function top(){
        header("Content-Type:text/html; charset=utf-8");
        import("ORG.Util.Session");
        if(Session::is_set("nickname")){
            $nickname= Session::get("nickname");
            $this->assign('user',$nickname);
            $this->display();
        }else{
            $this->redirect("Login/index");
        }

    }
}